import { defineConfig } from 'vitepress'
// import { set_sidebar } from './gen_sidebar.js'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "青柠知识库",
  description: "分享快乐",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    // sidebar: {'/api/': set_sidebar('/api/')}, 
    
    nav: [
      { text: '首页', link: '/' },
      // { text: 'Vue3', link: '/vue3/vue3.md' },
        
      { 
        text: 'Python web开发',
        items: [
          { text: 'Flask基础', link: '/python/flask基础.md' },
          { text: 'fastapi基础', link: '/python/fastapi.md' },
          // { text: 'falsk基于RBAC权限管理', link: '/python/flask基于RBAC权限管理.md' }
          
        ]
      },
      { 
        text: '物联网开发',
        items: [
          { text: '树莓派系列', link: '/RaspberryPi/树莓派.md' },
          { text: '树莓派pico', link: '/RaspberryPi/树莓派pico.md' },
          { text: 'ESP32', link: '/esp32/ESP32.md' }
          
        ]
      },
          
     
      
      {
        text: '好玩的Api',
        items: [
          { text: '阿里云盘签到', link: '/api/阿里云盘签到' },
          { text: '微信刷步', link: '/api/微信刷步.md' },
          { text: '抖音去水印', link: '/api/抖音去水印.md' },
          { text: '发送邮件', link: '/api/发送邮件.md' },
         
        ]
      }
    ],

    sidebar: [
      {
        text: '',
        items: [
          // { text: 'Vue教程', link: '/vue3/vue3.md' },
          { text: 'Flask基础教程', link: '/python/flask基础.md' },
          { text: 'fastapi基础', link: '/python/fastapi.md' },
          { text: '树莓派教程', link: '/RaspberryPi/树莓派.md' },
          { text: 'ESP32', link: '/esp32/ESP32.md' }
        ]
      }
    ],

    socialLinks: [
      { icon: 'github', link: 'https://gitee.com/zhuxiaohuaqn/qnbt' }
    ]
  }
})
